package com.blog.controller;

import org.springframework.web.bind.annotation.RequestMapping;

@org.springframework.stereotype.Controller
public class Controller {

    @RequestMapping("404")
    public String get404(){
        return "/public/404";
    }

    @RequestMapping("405")
    public String get405(){
        return "/public/405";
    }

    @RequestMapping("home")
    public String manager(){
        return "Home/index";
    }

    @RequestMapping("page/welcome-1")
    public String welcome_1(){
        return "Home/page/welcome-1";
    }


    @RequestMapping("page/login")
    public String login(){
        return "Home/page/login";
    }

    @RequestMapping("page/register")
    public String register(){
        return "Home/page/register";
    }

    @RequestMapping("page/addLabel")
    public String addLabel(){
        return "Home/page/addLabel";
    }

    @RequestMapping("page/labelManager")
    public String labelManager(){
        return "Home/page/labelManager";
    }

    @RequestMapping("page/addArticle")
    public String addArticle(){
        return "Home/page/addArticle";
    }

    @RequestMapping("page/editor")
    public String editor(){
        return "Home/page/editor";
    }
}
